//
//  User.h
//  runtimeTest
//
//  Created by Song on 2018/4/18.
//  Copyright © 2018年 Song. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Cat.h"

@interface User : NSObject

// json文件中的 money 是多余的，此处没有
@property (nonatomic,copy) NSString *name;
@property (nonatomic,assign) double height;
@property (nonatomic,assign) int age;

// 属性是一个对象
@property (nonatomic,strong) Cat *cat;
// 属性是一个数组
@property (nonatomic,strong) NSArray *books;

-(instancetype)initWithDict:(NSDictionary *)dict;
+(instancetype)userWithDict:(NSDictionary *)dict;

@end
